<?php /* Smarty version 2.6.19, created on 2012-12-22 16:49:56
         compiled from vietcad/gallery.tpl.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['usertemplate'])."/header.tpl.html", 'smarty_include_vars' => array('title' => 'header')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<div class="content"> <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['usertemplate'])."/left.tpl.html", 'smarty_include_vars' => array('title' => 'left')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
    <div class="cont_right">
        <div class="main_content">
            <h2>Download tài liệu</h2>
            <div class="details"> <?php if ($this->_tpl_vars['subalbumItems']): ?>
                <div class="clearboth" style="height:1px; background:#999"></div>
                <?php if ($this->_tpl_vars['resourceItems']): ?>
                <div class="otherNews1">
                    <ul>
                        <?php $_from = $this->_tpl_vars['resourceItems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i'] => $this->_tpl_vars['resourceItem']):
?>
                        <li><a href="<?php if ($this->_tpl_vars['aid'] == 5): ?><?php if ($this->_tpl_vars['resourceItem']->isFlash()): ?><?php echo $this->_tpl_vars['resourceItem']->getUrl_detail($this->_tpl_vars['lang']); ?>
<?php else: ?><?php echo $this->_tpl_vars['ROOTPATH']; ?>
/gallery/album/storage/<?php echo $this->_tpl_vars['resourceItem']->getFileName(); ?>
<?php endif; ?><?php else: ?><?php echo $this->_tpl_vars['ROOTPATH']; ?>
/gallery/album/storage/<?php echo $this->_tpl_vars['resourceItem']->getFileName(); ?>
<?php endif; ?>" title="<?php echo $this->_tpl_vars['resourceItem']->getName($this->_tpl_vars['lang']); ?>
"><?php echo $this->_tpl_vars['resourceItem']->getName($this->_tpl_vars['lang']); ?>
</a> </li>
                        <?php endforeach; endif; unset($_from); ?>
                    </ul>
                </div>
                <p>&nbsp;</p>
                <?php endif; ?>
                
                <?php $_from = $this->_tpl_vars['subalbumItems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['subalbumItem']):
?>
                <?php $this->assign('said', $this->_tpl_vars['subalbumItem']->getId()); ?>
                <?php $this->assign('resourceAItems', $this->_tpl_vars['resource']->getObjects(1,"status=1 AND aid=".($this->_tpl_vars['said']))); ?> <strong><a href="#" title="<?php echo $this->_tpl_vars['subalbumItem']->getName($this->_tpl_vars['lang']); ?>
" style="color:#00F; font-size:14px"><?php echo $this->_tpl_vars['subalbumItem']->getName($this->_tpl_vars['lang']); ?>
</a></strong>
                <div class="clearboth" style="height:1px; background:#999"></div>
                <?php if ($this->_tpl_vars['resourceAItems']): ?>
                <div class="otherNews1" style="padding-top:0px;">
                    <ul>
                        <?php $_from = $this->_tpl_vars['resourceAItems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i'] => $this->_tpl_vars['resourceAItem']):
?>
                        <li><a href="<?php if ($this->_tpl_vars['aid'] == 5): ?><?php if ($this->_tpl_vars['resourceAItem']->isFlash()): ?><?php echo $this->_tpl_vars['resourceAItem']->getUrl_detail($this->_tpl_vars['lang']); ?>
<?php else: ?><?php echo $this->_tpl_vars['ROOTPATH']; ?>
/gallery/album/storage/<?php echo $this->_tpl_vars['resourceAItem']->getFileName(); ?>
<?php endif; ?><?php else: ?><?php echo $this->_tpl_vars['ROOTPATH']; ?>
/gallery/album/storage/<?php echo $this->_tpl_vars['resourceAItem']->getFileName(); ?>
<?php endif; ?>" title="<?php echo $this->_tpl_vars['resourceAItem']->getName($this->_tpl_vars['lang']); ?>
"><?php echo $this->_tpl_vars['resourceAItem']->getName($this->_tpl_vars['lang']); ?>
</a> </li>
                        <?php endforeach; endif; unset($_from); ?>
                    </ul>
                </div>
                <?php endif; ?>
                <p>&nbsp;</p>
                <?php endforeach; endif; unset($_from); ?>
                <?php else: ?>
                <?php if ($this->_tpl_vars['resourceItems']): ?>
                <div class="otherNews1">
                    <ul>
                        <?php $_from = $this->_tpl_vars['resourceItems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i'] => $this->_tpl_vars['resourceItem']):
?>
                        <li><a href="<?php if ($this->_tpl_vars['aid'] == 5): ?><?php if ($this->_tpl_vars['resourceItem']->isFlash()): ?><?php echo $this->_tpl_vars['resourceItem']->getUrl_detail($this->_tpl_vars['lang']); ?>
<?php else: ?><?php echo $this->_tpl_vars['ROOTPATH']; ?>
/gallery/album/storage/<?php echo $this->_tpl_vars['resourceItem']->getFileName(); ?>
<?php endif; ?><?php else: ?><?php echo $this->_tpl_vars['ROOTPATH']; ?>
/gallery/album/storage/<?php echo $this->_tpl_vars['resourceItem']->getFileName(); ?>
<?php endif; ?>" title="<?php echo $this->_tpl_vars['resourceItem']->getName($this->_tpl_vars['lang']); ?>
"><?php echo $this->_tpl_vars['resourceItem']->getName($this->_tpl_vars['lang']); ?>
</a> </li>
                        <div class="clearboth" style="height:1px; background:#999"></div>
                        <?php endforeach; endif; unset($_from); ?>
                    </ul>
                </div>
                <?php else: ?>
                <p align="center"> Dữ liệu đang cập nhật Quý Khách vui lòng ghé lại sau</p>
                <?php endif; ?>
                
                <?php endif; ?>
                 </div>
        </div>
    </div>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['usertemplate'])."/footer.tpl.html", 'smarty_include_vars' => array('title' => 'footer')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 